package com.grieous.wow.entity;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Date;

import com.grieous.wow.common.DateUtil;
import com.grieous.wow.common.Line;
import com.grieous.wow.common.Status;

public class Family implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;

	private String qq;

	private String yy;

	private String line;

	private String leader;

	private String created;

	private String site;

	private Long clicks;

	private String status;
	
	private String place;

	private Date createTime;

	private Date modifyTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getYy() {
		return yy;
	}

	public void setYy(String yy) {
		this.yy = yy;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getCreated() throws ParseException {
		 
		return DateUtil.getDateStr(DateUtil.PATTERN_SECOND, created);
	}

	public void setCreated(String created) {
		this.created = created;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public Long getClicks() {
		return clicks;
	}

	public void setClicks(Long clicks) {
		this.clicks = clicks;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getLineName() {
		return Line.getName(line);
	}
	public String getStatusName() {
		return Status.getName(status);
	}
	public String getPlaceName() {
		if(place.equals("02")){
			return "置顶";
		}
		return "";
	}
}